﻿#region using statements

using Microsoft.Xna.Framework;

using NGen;
using NGen.Managers.GUI;
using NGen.Managers.GameState;

using XNAGameDemo.GUI;

#endregion

namespace XNAGameDemo.GameStates
{
	public class GameStateCredits : GameState
	{
		private readonly GUIElement m_gui = new GUIElementCreditsState();

		protected override void _Initialize() {
			GameEngine.GetService<IManagerGUI>().AddElement(m_gui);
		}

		protected override void _Cleanup() {
			GameEngine.GetService<IManagerGUI>().RemoveElement(m_gui);
		}

		protected override void _OnFocusLost() {}

		protected override void _OnFocusGained() {}

		protected override void _Update(GameTime p_gameTime) {}

		protected override void _Draw(GameTime p_gameTime) {
			GameEngine.GraphicsDeviceManager.GraphicsDevice.Clear(Color.Blue);
		}
	}
}